package by.ins.webconsole.jsf.actions;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.context.FacesContext;

import org.apache.log4j.Logger;

import by.ins.life.IData;
import by.ins.life.evolution.ILifeEvoluter;

@Deprecated
@ManagedBean(name="solver")
public class SolverAction extends ActionSupport {
	private static final Logger log = Logger.getLogger(SolverAction.class);
	List<IData<?>> data;
	
	@ManagedProperty(value="#{lifeEvolutorsBean.selectedLifeEvolutor}")
	public ILifeEvoluter<?> lifeEvoluter;
	
	public String solve(){
		Object obj = FacesContext.getCurrentInstance().getAttributes();
		obj.toString();
		return null;
	}

	public ILifeEvoluter<?> getLifeEvoluter() {
		return lifeEvoluter;
	}

	public void setLifeEvoluter(ILifeEvoluter<?> lifeEvoluter) {
		this.lifeEvoluter = lifeEvoluter;
	}
	
	
}
